<%@page import="helpers.StringHelper"%>
<%@page import="models.Software"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/xml;charset=UTF-8" language="java"%>
<%@page import="java.util.List"%>
<urlset
      xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
            http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
  <url>
    <loc>http://www.1stapp.org</loc>
  </url>
    <%
    ArrayList<Software> softwares= (ArrayList<Software>)request.getAttribute("softwares");
    Software software = new Software();
    for (int i = 0; i < softwares.size(); i++)
    {
    		software = softwares.get(i);
    %>
    <url>
      <loc>http://www.1stapp.org/i/<%=StringHelper.getAlias(software.getTrackName()).replaceAll("[^\\w]", "") + "-" + software.getTrackId()%></loc>
    </url>
    <%
    }
    %>
</urlset>